package com.jeecg.minidao.datasource;

public class DataSourceContextHolder {
	
	private static final ThreadLocal<DataSourceType> contextHolder = new ThreadLocal<DataSourceType>();
	
	public static void clearDataSourceType(){
		
		contextHolder.remove();
	}
	
	public static DataSourceType getDataSourceType(){
		
		return contextHolder.get();
	}
	
	
	public static void setDataSourceType(DataSourceType dataSourceType){
		
		contextHolder.set(dataSourceType);
	}
	
}
